package com.ruoyi.category.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 配件对象 sys_part
 * 
 * @author YJF
 */
public class SysPart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long partId;

    /** 名称 */
    private String partName;

    /** 图片地址 */
    private String partImage;

    /** 模型地址 */
    private String partModel;

    /** 教程地址 */
    private String partCourse;

    /** 配件ID */
    private String unitId;

    /** 分组 */
    private Integer partGroup;

    /** 分组集合 */
    private List<Long> partGroupIds;

    /** 显示顺序 */
    private Integer propSort;

    /** 状态:0正常1停用 */
    private String status;

    /** 删除标志:0代表存在,2代表删除 */
    private String delFlag;

    /** 配件ID集合 */
    private List<Long> partIds;

    public void setPartId(Long partId)
    {
        this.partId = partId;
    }

    public Long getPartId() 
    {
        return partId;
    }
    public void setPartName(String partName) 
    {
        this.partName = partName;
    }

    public String getPartName() 
    {
        return partName;
    }
    public void setPartImage(String partImage) 
    {
        this.partImage = partImage;
    }

    public String getPartImage() 
    {
        return partImage;
    }
    public void setPartModel(String partModel) 
    {
        this.partModel = partModel;
    }

    public String getPartModel() 
    {
        return partModel;
    }
    public void setPartCourse(String partCourse) 
    {
        this.partCourse = partCourse;
    }

    public String getPartCourse() 
    {
        return partCourse;
    }
    public void setPartGroup(Integer partGroup) 
    {
        this.partGroup = partGroup;
    }

    public Integer getPartGroup() 
    {
        return partGroup;
    }
    public void setPropSort(Integer propSort) 
    {
        this.propSort = propSort;
    }

    public Integer getPropSort() 
    {
        return propSort;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<Long> getPartIds() {
        return partIds;
    }

    public void setPartIds(List<Long> partIds) {
        this.partIds = partIds;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    public List<Long> getPartGroupIds() {
        return partGroupIds;
    }

    public void setPartGroupIds(List<Long> partGroupIds) {
        this.partGroupIds = partGroupIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("partId", getPartId())
            .append("partName", getPartName())
            .append("partImage", getPartImage())
            .append("partModel", getPartModel())
            .append("partCourse", getPartCourse())
            .append("partGroup", getPartGroup())
            .append("remark", getRemark())
            .append("propSort", getPropSort())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
